<extend name="Public:header"/>
<block name="main">
    <div class="bg">
        <img src="__WEBPUBLIC__/Wechat/img/title.png" class="title" />
        <div class="context">
            <if condition="empty($res)">
                <div style="font-size: 30px;">已经没有未中奖的用户了</div>
            </if>
            <volist name="res" id="obj" key="index">
                <div class="item">
                    <div class="flex1"> {$index} </div>
                    <div class="flex1">
                        <img class="user" src="{$obj.head_pic}" />
                    </div>
                    <div class="flex2">{$obj.nick_name}</div>
                </div>
            </volist>
        </div>
    </div>
</block>
<block name="footerjs">
    <script>
        $(document).keydown(function(event) {
            console.log(event);
            if ( event.keyCode == 66 ) {
                window.location.reload();
            }else if( event.keyCode == 78 ){
                requestUrl("{:U('Index/restart')}",{},function ( res ) {
                    console.log( res );
                    if ( res.flag == "success" ) {
                        layer.msg( res.message );
                    }
                })
            }
        });
    </script>
</block>